package com.gu;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Description:
 *
 * @Autor: Rolin
 * datetime: 05-19-11:05
 */
//不需要数据源的配置，取消数据源的自动配置
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class})
//这个是为了扫描到 common-base中的配置类 加载swagger
@ComponentScan(basePackages = {"com.gu", "com.gu"})
@EnableFeignClients
@EnableDiscoveryClient
public class OssMain {
    public static void main(String[] args) {
        SpringApplication.run(OssMain.class,args);
    }
}
